import request from "@/utils/request";

// 供应商注册
export function addVender(data) {
  return request({
    url: `/sp/SpLogin?code=${data.code}&uuid=${data.uuid}`, // 在路径中动态添加 code 参数
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

//供应商登录
export function spLogin(data) {
  return request({
    url: "/sp/SpLogin/login",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

// 查询供应商详细信息
export function vendorInfo() {
  return request({
    url: `/sp/supplier`,
    method: "get",
  });
}
// 修改供应商信息
export function editVendor(data) {
  return request({
    url: `/sp/supplier`,
    method: "put",
    data: data,
  });
}


//主持人登录
export function compereLogin(data) {
  return request({
    url: "/mc/login",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

// 查询主持人详细信息
export function compereInfo() {
  return request({
    url: `/mc/judgeUser`,
    method: "get",
  });
}
// 修改主持人密码
export function compereEdit(data) {
  return request({
    url: `/mc/applySupplier/updatePassword`,
    method: "put",
    data: data,
  });
}
